"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const echartsContainer = common_vendor.ref(null);
    const risklevel = common_vendor.ref({ nomal: 1, low: 1, light: 2, middle: 1, high: 2 });
    common_vendor.onMounted(() => {
      if (echartsContainer.value) {
        const myChart = common_vendor.init(echartsContainer.value);
        myChart.resize(
          {
            width: 300,
            height: 200
          }
        );
        const option = {
          title: {
            text: "异常血压统计",
            left: "center",
            top: "center"
          },
          series: [
            {
              type: "pie",
              data: [
                {
                  value: risklevel.value.nomal,
                  name: "正常高值",
                  itemStyle: {
                    color: "#F1C226"
                  }
                },
                {
                  value: risklevel.value.low,
                  name: "偏低",
                  itemStyle: {
                    color: "#76A0D4"
                  }
                },
                {
                  value: risklevel.value.light,
                  name: "轻度",
                  itemStyle: {
                    color: "#E7A029"
                  }
                },
                {
                  value: risklevel.value.middle,
                  name: "中度",
                  itemStyle: {
                    color: "#F27E10"
                  }
                },
                {
                  value: risklevel.value.high,
                  name: "重度",
                  itemStyle: {
                    color: "#CC5557"
                  }
                }
              ],
              radius: ["65%", "80%"]
            }
          ]
        };
        myChart.setOption(option);
      }
    });
    return (_ctx, _cache) => {
      return {};
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c08da671"]]);
wx.createComponent(Component);
